// import { createStorage } from '@/utils/Storage';
// const Storage = createStorage({ storage: sessionStorage });
// type routes = {
//   name: string,
//   path: string
// }
import { defineStore } from 'pinia';
// 左侧菜单是否展开
export const userMenuType = defineStore('menuType', {
  state: () => {
    return {
      isCollapse: true,
    };
  },
  getters: {
    getCollapse: (state: any) => {
      return state.isCollapse;
    },
  },
  actions: {
    setCollapse(value: boolean) {
      this.isCollapse = value;
    },
  },
});
